import {
  ChromeFilled,
  CrownFilled,
  SmileFilled,
  TabletFilled,
} from '@ant-design/icons';

export default {
  route: {
    path: '/',
    routes: [
      // {
      //   path: '/homes/welcome',
      //   name: '欢迎',
      //   icon: <SmileFilled />,
      //   component: '@pages/one-level/welcome.tsx',
      //   routes: [
      //     {
      //       path: '/homes/welcome',
      //       name: 'one',
      //       icon: 'https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg',
      //       component: '@pages/Home/index/index.tsx',
      //     },
      //   ],
      // },
      //设置
      {
        path: '/homes/setup',
        name: '设置',
        icon: <CrownFilled />,
        access: 'canAdmin',
        component: './Admin',
        routes: [
          {
            path: '/homes/setup/CoreSettings',
            name: '核心设置',
            icon: 'https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg',
            component: '@pages/Home/index/index.tsx',
            routes: [
              {
                path: '/homes/setup/CoreSettings/SiteSettings',
                name: '站点设置',
                icon: 'https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg',
                component: '@pages/Home/index/index.tsx',
              },
            ],
          },
          {
            path: '/homes/setup/administrators',
            name: '管理员',
            icon: <CrownFilled />,
            component: './Welcome',
          },
        ],
      },
      //模块
      {
        name: '楼盘',
        icon: <TabletFilled />,
        path: '/homes/properties',
        // component: '@/pages/welcome/index',
        routes: [
          {
            path: '/homes/properties/management',
            name: '楼盘管理',
            icon: <CrownFilled />,
            component: '@/pages/welcome/index',
            routes: [
              {
                path: '/homes/properties/management/Propertylist',
                name: '楼盘列表',
                icon: 'https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg',
                component: '@pages/Home/index/index.tsx',
              },
              {
                path: '/homes/properties/management/addproperty',
                name: '添加楼盘',
                icon: <CrownFilled />,
                component: './Welcome',
              },
            ],
          },
          {
            path: '/homes/properties/Developers',
            name: '开发商',
            icon: <CrownFilled />,
            component: './Welcome',
            routes: [
              {
                path: '/homes/properties/Developers/Developerslist',
                name: '开发商列表',
                icon: 'https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg',
                component: '@pages/Home/index/index.tsx',
              },
            ],
          },
          {
            path: '/homes/properties/purchase',
            name: '团购管理',
            icon: <CrownFilled />,
            component: './Welcome',
            routes: [
              {
                path: '/homes/properties/purchase/addpurchase',
                name: '添加团购',
                icon: 'https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg',
                component: '@pages/Home/index/index.tsx',
              },
              {
                path: '/homes/properties/purchase/purchaselist',
                name: '团购列表',
                icon: 'https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg',
                component: '@pages/Home/index/index.tsx',
              },
            ],
          },
        ],
      },
      //二手
      {
        name: '二手/出租',
        icon: <TabletFilled />,
        path: '/homes/second-hand',
        // component: '@/pages/welcome/index',
        routes: [
          {
            path: '/homes/second-hand/hire',
            name: '小区管理',
            icon: <CrownFilled />,
            component: '@/pages/welcome/index',
          },
          {
            path: '/homes/second-hand/second',
            name: '二手房',
            icon: <CrownFilled />,
            component: './Welcome',
            routes: [
              {
                path: '/homes/second-hand/Community/Housingmanagement',
                name: '房源管理',
                icon: 'https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg',
                component: '@pages/Home/index/index.tsx',
              },
              {
                path: '/homes/second-hand/Community/Addlistings',
                name: '添加房源',
                icon: 'https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg',
                component: '@pages/Home/index/index.tsx',
              },
            ],
          },
          {
            path: '/homes/second-hand/hire1',
            name: '出租房',
            icon: <CrownFilled />,
          },
        ],
      },
      //商业
      {
        icon: <TabletFilled />,
        path: '/homes/commerce',
        name: '商业',
        // component: '@/pages/welcome/index',
        routes: [
          {
            path: '/homes/commerce/Office',
            name: '写字楼',
            icon: <CrownFilled />,
            component: '@/pages/welcome/index',
            routes: [
              {
                path: '/homes/commerce/Office/offer',

                name: '写字楼',
                icon: 'https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg',
                component: '@pages/Home/index/index.tsx',
              },
              {
                path: '/homes/commerce/Office/offer2/offer2',

                name: '写字楼2',
                icon: 'https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg',
                component: '@pages/Home/index/index.tsx',
              },
            ],
          },
          {
            path: '/homes/commerce/shops',
            name: '商铺',
            icon: <CrownFilled />,
            component: './Welcome',
            routes: [
              {
                path: '/homes/commerce/shops/S1',
                name: '商铺一',
                icon: 'https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg',
                component: '@pages/Home/index/index.tsx',
              },
              {
                path: '/homes/commerce/shops/S2',
                name: '商铺一',
                icon: 'https://gw.alipayobjects.com/zos/antfincdn/upvrAjAPQX/Logo_Tech%252520UI.svg',
                component: '@pages/Home/index/index.tsx',
              },
            ],
          },
        ],
      },
      //楼盘
      {
        name: '模块',
        icon: <TabletFilled />,
        path: '/homes/module',
        // component: '@/pages/welcome/index',
        routes: [
          {
            path: '/homes/module/welcome',
            name: '模块管理',
            icon: <CrownFilled />,
            component: '@/pages/welcome/index',

            routes: [
              {
                path: '/homes/module/welcome/area',
                name: '地区管理',
                icon: <CrownFilled />,
                component: '@/pages/welcome/aa',
              },
              {
                path: '/homes/module/welcome/School',
                name: '学校管理',
                icon: <CrownFilled />,
                component: './Welcome',
              },
              {
                path: '/homes/module/welcome/metro',
                name: '地铁管理',
                icon: <CrownFilled />,
                component: './Welcome',
              },
            ],
          },
          {
            path: '/homes/module/Friendly',
            name: '友情链接',
            icon: <CrownFilled />,
            component: './Welcome',
            routes: [
              {
                path: '/homes/module/Friendly/Link',
                name: '链接管理',
                icon: <CrownFilled />,
                component: '@/pages/welcome/aa',
              },
            ],
          },
          {
            path: '/list/sub-page3',
            name: '三级列表页面',
            icon: <CrownFilled />,
            component: './Welcome',
          },
        ],
      },
      //客服
      {
        name: '客服',
        icon: <TabletFilled />,
        path: '/homes/customerservice',
        // component: '@/pages/welcome/index',
        routes: [
          {
            path: '/homes/customerservice/Overview',
            name: '客服信息总览',
            icon: <CrownFilled />,
            component: '@/pages/welcome/index',
          },
          {
            path: '/homes/customerservice/Customerservicelist',
            name: '客服列表',
            icon: <CrownFilled />,
            component: './Welcome',
          },
          {
            path: '/homes/customerservice/conversation',
            name: '会话管理',
            icon: <CrownFilled />,
            component: './Welcome',
            routes: [
              {
                path: '/homes/customerservice/conversation/visitor',
                name: '游客列表',
                icon: <TabletFilled />,
              },
              {
                path: '/homes/customerservice/conversation/giveservice',
                name: '服务记录',
              },
              {
                path: '/homes/customerservice/conversation/chat',
                name: '聊天记录',
              },
            ],
          },
          {
            path: '/homes/customerservice/im',
            name: '聊天室',
          },
        ],
      },
      {
        path: 'https://ant.design',
        name: 'Ant Design 官网外链',
        icon: <ChromeFilled />,
      },
    ],
  },
  location: {
    pathname: '/',
  },
};
